<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>readerLogin</title>
<link href="/lms/reader/css/readerStyle.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js" type="text/javascript"></script>
<script language="JavaScript" type="text/JavaScript">
document.onkeydown=function(event){ 
    e = event ? event :(window.event ? window.event : null); 
    if(e.keyCode==13){ 
    check();
        
    } 
} 
function check(){
if($.trim($("#username").val())==''){
	$('#errorMsg').text('用户名不能为空') ;
	$('#username').focus();
	return;
}
   if($.trim($("#password").val())==''){
   $('#errorMsg').text('密码不能为空') ;
	$('#password').focus();
	return;
}
$("#frm").submit();
}

</script>
</head>
<body>
<div id="container">
<div id="form" >
        <form action="/lms/login" method="post" name="frm" id="frm">
        <span class="dlt1">用户&nbsp;</span><input type="text" name="username" id="username" class="text"><br/><br/>
        <span class="dlt1">密码&nbsp;</span><input type="password" name="password" id="password" class="text"><br/><br/>
		<span class="dlt1">身份</span>
       	<label>
        <select name="loginRole">
          <option value="reader">读者</option>
          <option value="libraryAdmin">图书管理员&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
          <option value="systemAdmin">系统管理员</option>
        </select><br />
        </label>
        <span class="dlt1"><font color="red" size="2"><span id='errorMsg'>${actionErrorMessage}</span></font></span><br/>
		<input type="button" value="提交" name="" id=""  onclick="check()"/>
        <input type="reset" value="重置" name="" id=""  />
        </form>
        </div>

</div>

</body>
</html>